package com.bungarus.bridge.config;

import com.bungarus.bridge.BusiBridge;
import com.bungarus.bridge.busi.TransferMsgForProcessingLargeGroupHandler;
import com.bungarus.config.ChannelServerInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * Created by tang on 2018/12/30.
 */
public class BusiBridgeServerChildHandlerInitializer extends ChannelServerInitializer {
    private final BusiBridge busiBridge;
    private final TransferMsgForProcessingLargeGroupHandler transMsg4ProcessingLargeGroupHandler;

    public BusiBridgeServerChildHandlerInitializer(BusiBridge busiBridge) {
        this.busiBridge = busiBridge;
        this.transMsg4ProcessingLargeGroupHandler = new TransferMsgForProcessingLargeGroupHandler(busiBridge);
    }

    @Override
    protected void initServerServiceHandlers(SocketChannel socketChannel) {
        socketChannel.pipeline().addLast(transMsg4ProcessingLargeGroupHandler);
    }

    @Override
    protected void initNormalHandlers(SocketChannel socketChannel) {

    }
}
